use [sklad]
begin
  DECLARE @i int
  SET @i=1
  set @end = 10
  while (@i < @end) 
  begin
    insert into [warehouse]([place],[state]) values (@i,null)
    SET @i=@i+1
  end
end